<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>支付宝支付</title>
    <script src="js/jquery.js"></script>
</head>
<body>
    <div id="alipayDiv">

    </div>
    <script type="text/javascript">
        let vid = localStorage.getItem("vids")
        let trade=Date.now();//时间错
        let total= localStorage.getItem("total")//金额
        let bodys= localStorage.getItem("bodys")//缴费人
        let subject=localStorage.getItem("subject")//缴费名称
            $.ajax({
                url :"alipay",
                type:"get",
                data:{
                    "vid":vid,
                    "out_trade_no":trade,
                    "total_amount":total,
                    "body":bodys,
                    "subject":subject
                },
                success:function (data){
                    $("#alipayDiv").append(data.pageHtml)
                }
            });

    </script>
</body>
</html>